package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void save(DishDTO dishDTO);

    DishVO getDishById(Long id);

    PageResult page(DishPageQueryDTO pageQueryDTO);

    Long getStatusById(Long i);

    void deleteBath(List<Long> ids);

    Result update(DishVO dishVO);

    List<DishVO> listWithFlavor(Dish dish);
    void updateStatus(Long id, Integer status);

    List<Dish> list(Long categoryId);
}
